import request from '@/utils/request'

// 查询记录学习时间列表
export function listRecordTime(query) {
  return request({
    url: '/unifiedmanagement/recordTime/list',
    method: 'get',
    params: query
  })
}

// 查询记录学习时间详细
export function getRecordTime(timeId) {
  return request({
    url: '/unifiedmanagement/recordTime/' + timeId,
    method: 'get'
  })
}

// 新增记录学习时间
export function addRecordTime(data) {
  return request({
    url: '/unifiedmanagement/recordTime',
    method: 'post',
    data: data
  })
}

// 修改记录学习时间
export function updateRecordTime(data) {
  return request({
    url: '/unifiedmanagement/recordTime',
    method: 'put',
    data: data
  })
}

// 删除记录学习时间
export function delRecordTime(timeId) {
  return request({
    url: '/unifiedmanagement/recordTime/' + timeId,
    method: 'delete'
  })
}
